<?php /* Template Name: Homepage with sidebar */ ?>
<?php get_header(); ?>

<div class="cols">
    <div class="col_2-3 cont_holder">
        <?php if( have_posts() ): ?>

            <?php while( have_posts() ): the_post(); ?>
            
                <?php the_content(); ?>
                
            <?php endwhile; ?>
            
            <?php 
            if( function_exists('wp_pagenavi') ) {
                wp_pagenavi( '<div class="paginator inblog">', '</div>', 'pages');
            }else {
                wp_link_pages(
                    array(
                        'before'        => '<div class="paginator inblog"><div class="pages">',
                        'after'         => '</div></div>',
                        'pagelink'      => '<span>%</span>'
                    )
                );
            }
            ?>
            
        <?php else:?>

            <p><?php _e( 'Sorry, but page is empty.', LANGUAGE_ZONE ); ?></p>
            
        <?php endif; ?>
        
    </div>
    
    <?php dt_get_where_filter_params( 'home_full' ); ?>
    <?php get_sidebar(); ?>
    
</div>

<?php get_footer(); ?>
